package com.sjh.test.java8.foreach;

import java.util.Arrays;

public class ForEachTest4 {
    public static void main(String[] args)
    {
        Arrays.asList("ForEach One！","ForEach Two！","ForEach Three！")
                .stream()
                .filter(s->s.contains("ForEach"))
                .forEach(System.out::println);
    }
}
